/**
 * @Author: 孙小寒
 * @Date: 2020-12-23
 * @Last Modified by: sunxh
 * @Last Modified time: 2020-12-23 14:38
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';


// 列表查询
export const getBatteryMaintenanceList = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/batteryMaintenance`, {params})
// ID获取表单详情
export const getBatteryMaintenanceById = id => axios.get(`${SERVER.CMSCLOUD_WMS}/part/batteryMaintenance/${id}`)
// 保存
export const postSaveBatteryMaintenance = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/batteryMaintenance`, params)
// 根据ids批量更新启用标志
export const postUpdateStatusByIds = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/batteryMaintenance/updateStatusByIds/${params.status}`, params.ids)
// 修改
export const putBatteryMaintenance = params => axios.put(`${SERVER.CMSCLOUD_WMS}/part/batteryMaintenance`, params);
